package yuxi;

public class studentDemo3 {
    public static void main(String[] args) {
        student s1 = new student();

        s1.name = "张三";
        s1.age = 20;
        System.out.println(s1.name+","+s1.age);

        student s2 = s1;
        s2.name = "李四";
        s2.age = 30;
        System.out.println(s1.name+","+s1.age);
        System.out.println(s2.name+","+s2.age);
    }
}
